/* ********************************************************************************************
*  Alvin Baldemeca
*  Tetris Project
*  Course: TCSS 305 , Alan Fowler
*  Term: Spring 2012
*  UNIVERISTY OF WASHINGTON TACOMA
*
*
**********************************************************************************************/

package view.menu;

import javax.swing.Action;
import javax.swing.JMenu;
import javax.swing.JMenuItem;

/**
 * The class is a JMenu that is used to add to a menu bar. 
 * @author Alvin Baldemeca
 * @version 5/10/2012
 *
 */
@SuppressWarnings("serial")
public class HelpMenu extends JMenu
{
  
  /**
   * Constructs a JMenu with the name Help and Mnemonic 'H'.
   */
  public HelpMenu()
  {
    super("Help");
    setMnemonic('H');
  }
  
  /**
   * Creates a menu item to be added to the HelpMenu.
   * @param an_action the action to attach to the menu item.
   */
  public void createJMenuItem(final Action an_action)
  {
    add(new JMenuItem(an_action));
  }
}
